/**
 * Created by XQ on 2017/6/19.
 */
app.config(['$provide',function ($provide) {
    $provide.factory("userSession",function () {
        var user = {};

        var account = null;

        user.setAccount = function (newAccount) {
            account = newAccount;
        }

        user.getAccount = function () {
            return account;
        }

        return user;
    })
}]);